import Vue from 'vue'
import App from './App'
import uView from "uview-ui";
import Vuex from 'vuex';

Vue.use(Vuex)
Vue.use(uView);

//引入vuex
import store from './store'
//把vuex定义成全局组件
Vue.prototype.$store = store;

// 引入url配置
import url from './common/config.js'
Vue.prototype.$url = url;

// API引入封装的请求
import apis from '@/api'
Vue.use(apis);

/**
 * 公共JS方法
 * @name tools
 * 使用方式：this.$tools.function()；
 **/
import tools from './common/tools.js'
Vue.prototype.$tools = tools;

// cloudApi请求封装
import cloudApi from './common/cloudApi.js'
Vue.prototype.$cloudApi = cloudApi;

// 全局状态栏颜色
Vue.prototype.$navBackground = {
	background: '#097a9b'
}

import share from '@/static/js/mixins/share.js'

Vue.mixin(share)

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
	...App
})
app.$mount()
